﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CardQuery.aspx.cs" Inherits="WebSite.admin.product.CardQuery" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
    <title></title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form2" runat="server" >
    <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="卡片查询"  ShowHeader="true" >
              <Items>

            <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">

             <Items>

                    <ext:Label ID="lblCardFrom"  Width="60px"    runat="server" Text="&nbsp;&nbsp;卡号："></ext:Label>
                    <ext:TextBox runat="server" ID="txtCardCode"   MaxLength="20" Label="卡号" ></ext:TextBox>
                     <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server" 
                             OnClick="btnSearch_Click"></ext:Button>
             </Items>
         </ext:Panel>
     </Items>
     
   </ext:SimpleForm>

         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="394px"  AllowPaging="false"   
                      ShowHeader="False" runat="server" EnableCheckBoxSelect="false"   AllowSorting="false"    IsDatabasePaging="false" 
                        DataKeyNames="cardcode"  EnableRowNumber="True">

        <Columns>
        
            <ext:BoundField Width="100px" ColumnID="cardcode" SortField="cardcode" DataField="cardcode" DataFormatString="{0}"
                HeaderText="卡 号" />
           <ext:BoundField Width="100px" ColumnID="CardTypeName" SortField="CardTypeId" DataField="CardTypeName" DataFormatString="{0}"
                HeaderText="礼品卡类别" />
            <ext:BoundField Width="120px" ColumnID="publishWay" SortField="publishWay" DataField="publishWay" DataFormatString="{0}"
                HeaderText="发行方式" />
                   <ext:BoundField Width="100px" ColumnID="cardPrice" SortField="cardPrice" DataField="cardPrice" DataFormatString="{0}"
                HeaderText="福点数" />
                <ext:BoundField Width="100px" ColumnID="states" SortField="states" DataField="statesName" DataFormatString="{0}"
                HeaderText="状 态" />
                  <ext:BoundField Width="300px" ColumnID="code" SortField="code" DataField="code" DataFormatString="{0}"
                HeaderText="使用情况" />


        </Columns>
    </ext:Grid>



    </form>
</body>
</html>



